import { App, provide } from "vue";

import andTool from "@/utils/andTool";

/**
 * 注册全局方法
 * @param app
 */
export function setupGlobalMethods(app: App) {
  //重定义ant工具
  Object.keys(andTool).forEach((key: string) => {
    app.provide(key, (<any>andTool)[key]);
  });
}
